#include "iat_online_record_sample.hpp"
struct speech_rec iat;
void iat_end() {
	sr_uninit(&iat);
}
void iat_init(struct speech_rec_notifier recnotifier)
{
	const static char* session_begin_params = "sub = iat, domain = iat, language = zh_cn, accent = mandarin, sample_rate = 16000, result_type = plain, result_encoding = gb2312";
	int errcode;
	errcode = sr_init(&iat, session_begin_params, SR_MIC, DEFAULT_INPUT_DEVID, &recnotifier);
	if (errcode) {
		printf("speech recognizer init failed\n");
		return;
	}
}